home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / VZ619D (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.3 KB  |  22 lines

  1. package com.sun.java.swing.plaf.basic;
  2.  
  3. import com.sun.java.swing.event.ListSelectionEvent;
  4. import com.sun.java.swing.event.ListSelectionListener;
  5.  
  6. class BasicComboPopup$ListSelListener implements ListSelectionListener {
  7.    // $FF: synthetic field
  8.    BasicComboPopup this$0;
  9.  
  10.    public void valueChanged(ListSelectionEvent e) {
  11.       if (this.this$0.isVisible() && !this.this$0.valueIsAdjusting && !e.getValueIsAdjusting()) {
  12.          this.this$0.comboBox.setSelectedIndex(this.this$0.list.getSelectedIndex());
  13.       }
  14.  
  15.    }
  16.  
  17.    // $FF: synthetic method
  18.    BasicComboPopup$ListSelListener(BasicComboPopup this$0) {
  19.       this.this$0 = this$0;
  20.    }
  21. }
  22.